#include <stdio.h>
int main()
{
    int n;
    int i;
    scanf("%d", &n);
    int peach = 1;
    int temp;
    for (i = 2; i <= n; i++)
    {
        temp = (peach + 1) * 2;
        peach = temp;
    }
    printf("%d", peach);
}